<template>
  <div class="app-container">
    <UserInfoCom  ref="userInfoCom" :userId="userId" :pageType="PageTypeEnum.HOME_PAGE"/>
    <div style = "position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);" class="layoutHorizontal">
      <img src="@/assets/icon/home/unLike.png"  style=" height: 60px;"/>
      <img src="@/assets/icon/home/inLike.png"  style=" height: 60px;margin-left: 80px;"/>
    </div>
  </div>
</template>
 
<script>
import { Http, Uploader } from "@/common/HttpClient";
import { Toast, Notify } from "vant";
import UserInfoCom from "@/views/mine/component/UserInfoCom.vue";
import { PageTypeEnum} from "@/views/home/enums/PageTypeEnum";



export default {
  components: {UserInfoCom},
  data() {
    return {
      userId:"",
      PageTypeEnum:PageTypeEnum,
    };
  },

  mounted() {
     this.$refs.userInfoCom.requestUserInfo();
  },

  beforeDestroy() {
  },

  beforeRouteEnter (to, from, next) {
    console.log("beforeRouteEnter", to, from);
  },

    
  beforeRouteLeave (to, from, next) {
  },

  destroyed() {
  },
  activated() {
   
  },
  methods: {

    checkValue(){
      if (!this.cityName) {
        Notify({
            type: "danger",
            message: "请选择你的居住城市",
        });
        return false;
      }
      return true;
    },


    toPreference(){
      this.$router.push({ name: 'Preference' });
    },





  },
};
</script>

<style lang="less" scoped>

  .layoutVerticle{
    display: flex;
    flex-direction: column;
  }

  .layoutHorizontal{
    display: flex;
    flex-direction: row;
  }

  .layoutCenter{
    justify-content: center;
    align-items: center;
  }

  .app-container {
    top: 0px !important;
  }




</style>